package com.stars.empoly.adapter

import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder
import com.stars.empoly.R
import com.stars.empoly.databinding.ItemInvoiveListBinding
import com.stars.empoly.model.InvoiceData
import com.stars.empoly.vmodel.InvoiceListVModel
import com.trailer.base.base.BAdapter

class InvoiceListAdapter(var vm: InvoiceListVModel) : BAdapter<InvoiceData, BaseDataBindingHolder<ItemInvoiveListBinding>>(R.layout.item_invoive_list) {

    override fun convert(holder: BaseDataBindingHolder<ItemInvoiveListBinding>, item: InvoiceData) {
        holder.dataBinding?.vm=vm
        holder.dataBinding?.item = item
        holder.dataBinding?.position=holder.adapterPosition

    }
}
